package br.ufpe.cin.msc.jrsj2.recommender.algorithm.newuser;

import java.util.List;

import br.ufpe.cin.msc.jrsj2.recommender.persistence.domain.Program;

public abstract class NewUserStrategy {

	public enum E_NewUserStrategy {
		RANDOM, POPULARITY//, ENTROPY
	}

	private static E_NewUserStrategy strategy = E_NewUserStrategy.RANDOM;

	public static void setNewUserStrategy(E_NewUserStrategy _strategy) {
		strategy = _strategy;
	}

	public static NewUserStrategy getStrategy() {
		if (strategy == E_NewUserStrategy.RANDOM)
			return new RandomStrategy();
		if (strategy == E_NewUserStrategy.POPULARITY)
			return new PopularityStrategy();
		return null;
	}

	public abstract List<Program> getItens(List<Program> set, int size);

}
